package com.leo.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.leo.blog.entity.Ping;

public interface PingDao {
	/**
	 * 插入评论
	 * @param ping
	 * @return
	 */
	int insertPing(Ping ping);
	
	/**
	 * 删除评论
	 * @param pingId
	 * @return
	 */
	int deletePingByPingId(int pingId);
	
	/**
	 * 分页查询评论列表
	 * @param blogId
	 * @param rowIndex
	 * @param pageSize
	 * @return
	 */
	List<Ping> queryPingListByBlogId(@Param("pingCondition") Ping pingCondition, @Param("rowIndex") int rowIndex, 
				@Param("pageSize") int pageSize);
	int queryPingListByBlogIdCount(@Param("pingCondition") Ping pingCondition);
}
